package com.ifnk.portaljava.hlyt.beans;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
 * <p>Title:角色类</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2010</p>
 *
 * <p>Company: </p>
 *
 * @author  xiaoyan.zhang.hlyt@gmail.com
 * @version 1.0
 */
public class Role implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9154998095587314396L;
	private int id;
	private String name;
	private Date createtime;
	private Date disabletime;

	private String createtimeString;
	private String disabletimeString;

	private Set<RolePermission> rolePermissionSet = new HashSet<RolePermission>();
	private Set<User> UserSet = new HashSet<User>();
	
	private String permissionString = "";
	
	public String toString() {
		return name + ":" + createtime + ":" + disabletime + ":";
	}

	public String getCreatetimeString() {
		return createtimeString;
	}

	public void setCreatetimeString(String createtimeString) {
		this.createtimeString = createtimeString;
	}

	public String getDisabletimeString() {
		return disabletimeString;
	}

	public void setDisabletimeString(String disabletimeString) {
		this.disabletimeString = disabletimeString;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getDisabletime() {
		return disabletime;
	}

	public void setDisabletime(Date disabletime) {
		this.disabletime = disabletime;
	}

	public Set<RolePermission> getRolePermissionSet() {
		return rolePermissionSet;
	}

	public void setRolePermissionSet(Set<RolePermission> rolePermissionSet) {
		this.rolePermissionSet = rolePermissionSet;
	}

	public Set<User> getUserSet() {
		return UserSet;
	}

	public void setUserSet(Set<User> userSet) {
		UserSet = userSet;
	}

	public String getPermissionString() {
		return permissionString;
	}

	public void setPermissionString(String permissionString) {
		this.permissionString = permissionString;
	}

}
